<?php
//require_once '../mdl/Connection.php';

class SelectCategory extends Connection{
	private $conn;

	public function __construct(){
		Connection::init();
		$this->conn = $this->getConnection();
	}
	public  function extractAll(){
		$stmt = $this->conn->query("select *
								from category");
		return $stmt->fetchall(PDO::FETCH_ASSOC);
	}

}
?>